package org.jeecg.modules.mapper;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.entity.ProjectProfessorInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.vo.SelectForEntity;
import org.springframework.stereotype.Repository;

/**
 * @Description: 项目所需专家抽取状态
 * @Author: jeecg-boot
 * @Date:   2020-07-06
 * @Version: V1.0
 */
@Mapper
@Repository
public interface ProjectProfessorInfoMapper extends BaseMapper<ProjectProfessorInfo> {

    @Override
    ProjectProfessorInfo selectById(@Param("id") Serializable id);

    @Override
    IPage<ProjectProfessorInfo> selectPage(IPage<ProjectProfessorInfo> page, Wrapper<ProjectProfessorInfo> queryWrapper);

    /**
     * 实现多表分页，模糊查询
     * @return
     */
    List<ProjectProfessorInfo> pageByEntity();

    /**
     *
     * @param page
     * @param userid
     * @return
     */
    IPage<ProjectProfessorInfo> queryListByUserId(Page<ProjectProfessorInfo> page, @Param("userid") String userid);
    IPage<ProjectProfessorInfo> queryListByUserId01(Page<ProjectProfessorInfo> page, @Param("userid") String userid);
    IPage<ProjectProfessorInfo> queryListByUserId03(Page<ProjectProfessorInfo> page, @Param("userid") String userid, @Param("projectName") String projectName);
}
